Don't whine about expander-style missing
authorMatthias Clasen <mclasen@redhat.com>
Tue, 16 Nov 2010 12:52:27 +0000 (07:52 -0500)
committerCarlos Garnacho <carlosg@gnome.org>
Sat, 4 Dec 2010 14:39:12 +0000 (15:39 +0100)
This check was lost in the GtkStyleContext porting.

gtk/gtkstyle.c

index ff3ba063174360ad5aa3693584750cce45fbda35..5a357b4b01a4c5ebdd9af9e59bbc0fa0d59624a4 100644 (file)
@@ -3187,7 +3187,9 @@ gtk_default_draw_expander (GtkStyle        *style,
       break;
     }
 
-  if (widget)
+  if (widget &&
+      gtk_widget_class_find_style_property (GTK_WIDGET_GET_CLASS (widget),
+                                            "expander-size"))
     gtk_widget_style_get (widget, "expander-size", &size, NULL);
   else
     size = 12;